# 替换第三十行内容
nl passwd|sed '30c sajlgdjashugeawkfhfjsahkfa'
# 替换第20到30行整体（非每行）内容
nl passwd|sed '20,30c safawvsdafesgfahajfa'
